<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<title>Mserv</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="author" content="Maxime Chéramy" /> 
<script type="text/javascript" src="scripts.js"></script>
</head>
<body>
<?php
if($connected) {

$nompage = substr($_SERVER["SCRIPT_NAME"], strrpos($_SERVER["SCRIPT_NAME"],"/")+1);

?>
	<div class="topbar">
		<?php
			$res = volume($_POST["volume"]);
			$volume = $res["VOLUME"];
		?>
			<ul>
				<li><form action="search.php" method="get"><input type="text" name="query" /><input type="submit" value="<?php echo _("Search"); ?>" /></form></li>
				<li><?php echo _("Volume : ");?><select name="volume" <?php echo strtolower($_SESSION["USERNAME"]) == "guest" ? "disabled " : "" ?>onchange="submitVolume(this.value)">
				<?php 
					for($i=100; $i>=0; $i-=5) {
						if($volume > $i && $volume < $i+5) echo "<option value=\"$volume\" selected>$volume</option>\n";
						echo "<option value=\"$i\"".($volume == $i ? " selected" : "").">$i</option>\n";
					} 
				?></select></li>
				<li><a href="status.php"<?php if($nompage == "status.php") echo " style=\"color: #CC0000\""; ?>><?php echo _("Status"); ?></a></li>
				<li><a href="albums.php"<?php if($nompage == "albums.php") echo " style=\"color: #CC0000\""; ?>><?php echo _("Albums"); ?></a></li>
				<li><a href="queue.php"<?php if($nompage == "queue.php") echo " style=\"color: #CC0000\""; ?>><?php echo _("Queue"); ?></a></li>
				<li><a href="top.php"<?php if($nompage == "top.php") echo " style=\"color: #CC0000\""; ?>><?php echo ("Top"); ?></a></li>
				<li><a href="history.php"<?php if($nompage == "history.php") echo " style=\"color: #CC0000\""; ?>><?php echo _("History"); ?></a></li>
				<li><a href="who.php"<?php if($nompage == "who.php") echo " style=\"color: #CC0000\""; ?>><?php echo _("Who"); ?></a></li>
				<li><a href="logout.php"><?php echo _("Logout"); ?></a></li>
			</ul>
	</div>
<?php
}
?>
<div class="corp">
